﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.SharePoint;
using Microsoft.SharePoint.Security;

namespace SPBusiness.ExtensionMethods
{
    public static class ExtSPListCollection
    {


        public static SPList TryGetListById(this SPListCollection vSPListCollection, Guid vId)
        {
            return vSPListCollection.OfType<SPList>().FirstOrDefault(x => x.ID == vId);
        }

    }
}
